[Flash Builder Profiler] Why some function have been called
Posted
by
HarryWang
on Stack Overflow
See other posts from Stack Overflow
or by HarryWang
Published on 2010-11-06T03:32:26Z
Indexed on
2011/01/16
0:53 UTC
Read the original article
Hit count: 108
1 Create a project use flex sdk 3.4
2 Create a new mxml app Testadd.mxml
3 Add a source jpg Any.jpg
content of Testadd.mxml just two line.
[Embed(source="Any.jpg")]
public var NotUsedSource:Class;
I think this just defined a class which represent some data. And I never use it or initialize any instance of it in this app.
4 Profile this app, when it is profiling I click the resize button of IE servral times.
5 From the profiled data a function named Testadd_NotUsedSource.flash.events:IEventDispatcher:dispatchEvent is been called
6 My question is why this function has been called.
I have the screenshot but can't add to this post.
© Stack Overflow or respective owner